class CreateUsers < ActiveRecord::Migration[6.1]
  def change
    create_table :users do |t|
      t.string :username, limit: 100, null: false, default: ''
      t.string :password_digest, limit: 255, null: false, default: ''
      t.string :email, limit: 100, null: false, default: ''
      t.string :full_name
      t.string :school
      t.string :major
      t.string :avatar
      t.integer :cnt_finished, default: 0
      t.integer :cnt_break, default: 0
      t.integer :credit, default: 100

      t.timestamps
    end
  end
end
